/**
 * 
 */
package com.xb.demo5.singleton;

/**
 * 懒汉
 * @author kexue
 *
 */
public class SingleClass2 {

	private static SingleClass2 INSTANCE = null;
	private SingleClass2(){}
	
	public static SingleClass2 getInstance() {
		if (INSTANCE == null) {
			INSTANCE = new SingleClass2();
		}
		return INSTANCE;
	}
	
}
